<?php
namespace app\api\controller;
use think\Controller;
use think\Db;
class Index extends Base{
    public function index(){
        if(!empty(input("param.url"))){
            $url=input("param.url");
        }else{
            return json(['code' => 501, 'msg' => '请给出域名参数']);exit();
        }
        $customer=Db::name('customer')->where('url',$url)->where('state',1)->find();
        if($customer){
            return json(['code' => 200, 'msg' => '存在！']);exit();
        }else{
            return json(['code' => 502, 'msg' => '此客户不存在或者被禁用了！']);exit();
        }
    }
}